﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WebBrowserTest
{
    class CSObj
    {
        private System.Threading.SynchronizationContext context;
        public CSObj(System.Threading.SynchronizationContext context)
        {
            this.context = context;
        }
        public void ShowMsg(string msg)
        {
            System.Windows.MessageBox.Show(msg);
        }
        public void UpdateTime(string timeStr)
        {
            context.Send(x => {
                var window = App.Current.MainWindow as MainWindow;
                window.lbTime.Content = timeStr;
            }, null);

        }
    }
}
